<?php if (getParameter("mode")!="edit") {?>
 
 


    <div id="<?=$portletUID?>_map-canvas" style="width: <?=$portlet_googlemaps_width?>px;height: <?=$portlet_googlemaps_height?>px"/>
    
       <script type="text/javascript">
      function <?=$portletUID?>_initialize() {

                var <?=$portletUID?>_mapOptions = {
          center: new google.maps.LatLng(<?=$portlet_googlemaps_lat?>,<?=$portlet_googlemaps_long?>),
          zoom: <?=$portlet_googlemaps_zoom?>,
        		  mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        var <?=$portletUID?>_map = new google.maps.Map(document.getElementById("<?=$portletUID?>_map-canvas"),
        		<?=$portletUID?>_mapOptions);
      }
      
      google.maps.event.addDomListener(window, 'load', <?=$portletUID?>_initialize);
    </script>
    
    <?php } else {?>
    
    Google Maps Portlet
    <?php } ?>